package com.cvtt.xmpp;

public class XMPPConfig {

	public static boolean LOG_ENABLE = true;

	public static String XMPP_HOST = "im.95013vh.com";// "huach.95013.com";//"im.ucalling.com";
	//public static String XMPP_HOST = "im.95voice.com";// "huach.95013.com";//"im.ucalling.com";
	public static String SEARCH_XMPP_HOST = "vjud.im.95013vh.com";// "vjud.huach.95013.com";//"vjud.im.ucalling.com";
	//public static String SEARCH_XMPP_HOST = "vjud.im.95voice.com";// "vjud.huach.95013.com";//"vjud.im.ucalling.com";
	public static int XMPP_PORT = 5222;
	// public static String XMPP_RESOURCE_NAME = "vPhone For Android";
	public static String XMPP_RESOURCE_NAME = "vPhone for Android";
	public static String XMPP_USERNAME = "100003";
	public static String XMPP_PASSWORD = "123456";

	public static boolean useSecurityMode = false; // 不支持
	public static boolean useCompression = false; // 不支持

	// 发送心跳包的MsgID
	public static String pingMsgId = "";
	// 心跳包丢包的数量
	public static int lostPingPackegcount = 0;
	// 最多允许丢包的个数，超过这个个数认为系统已经掉线，发起重连请求
	final public static int MAX_LOST_PACKAGE_COUNT = 3;
	// 发送ping包周期
	final public static int PING_PERIOD = 40;

	public static final int XMPP_STATUS_AVAILABLE = 0;// xmpp is available
	public static final int XMPP_STATUS_REG = 1;// xmpp is reg
	public static final int XMPP_STATUS_AWAY = 2;// xmpp is away
	private static int mXMPPStatus = XMPP_STATUS_AWAY;

	public static String getUserName() {
		return XMPP_USERNAME;
	}

	public static String getPassWord() {
		return XMPP_PASSWORD;
	}

	public static void setUserName(String username) {
		XMPP_USERNAME = username;
	}

	public static void setPsd(String psd) {
		XMPP_PASSWORD = psd;
	}

	public static int getXMPPStatus() {
		return mXMPPStatus;
	}

	public static void setXMPPStatus(int xmppStatus) {
		mXMPPStatus = xmppStatus;
	}
}